<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var arr=['2','3','4','5','6'];
		    var d="|";
		    var array=arr[0];
			for (var i=0; i<str.length;i++) {
				array+=d+arr[i];
			}
console.log(array);
</script>
	</body>
</html>
